/*
 * @Author: 刘美红 liumeihong@llootong.com
 * @Date: 2025-05-22 17:45:10
 * @LastEditors: 刘美红 liumeihong@llootong.com
 * @LastEditTime: 2025-05-23 11:35:01
 * @FilePath: \gzt-template\src\api\videoplan.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import http from './httpInstance';
// 提交 保存
function getupd(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspect/inspect/upd',
    data: params,
  });
}

function getassign(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspect/inspect/assign',
    data: params,
  });
}

function getlist(params) {
  return http({
    method: 'post',
    // url: '/vmp-server/api/sysmanage/inspect/getlist',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspect/inspect/getlist',
    data: params,
  });
}

function getlistN(params) {
  return http({
    method: 'post',
    // url: '/vmp-server/api/sysmanage/users/getlist',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspect/users/getlist',
    data: params,
  });
}

function getOrgsOnTreeView(params) {
  return http({
    method: 'post',
    // url: '/vmp-server/v1/org/getOrgsOnTreeView',
    url: '/integrated-workbench/v1/meeting/devicetree',
    data: params,
  });
}

function gettasklist(params) {
  return http({
    method: 'post',
    // url: '/vmp-server/v1/inspect/staff/gettasklist',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspect/gettasklist',
    data: params,
  });
}

function gettaskroutes(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspect/gettaskroutes',

    data: params,
  });
}

function starttask(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspect/starttask',
    data: params,
  });
}

function updtaskroutestate(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspecupdtaskroutestate',
    data: params,
  });
}

function bydeviceid(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspect/geteventlist/bydeviceid',
    data: params,
  });
}

function getparamdict(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspect/getparamdict',
    data: params,
  });
}

function reportevent(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspect/reportevent',
    data: params,
  });
}

function uploadpic(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/enforcement/picupload',
    data: params,
    headers: { 'Content-Type': 'multipart/form-data' },
  });
}

function getcameraurl(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/enforcement/playruntimecameraurl',
    data: params,
  });
}

function handlecameracontrol(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/enforcement/handlecontrol',
    data: params,
  });
}

function bytaskid(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspect/bytaskid',
    data: params,
  });
}

// 编辑时  查详情

function getRWdetail(params) {
  return http({
    method: 'post',
    url: '/integrated-workbench/v1/streetalertplatform/event/eventflow/inspect/inspect/getdetail',
    data: params,
  });
}

export {
  bytaskid,
  handlecameracontrol,
  getcameraurl,
  uploadpic,
  reportevent,
  getparamdict,
  bydeviceid,
  updtaskroutestate,
  starttask,
  gettaskroutes,
  gettasklist,
  getOrgsOnTreeView,
  getlistN,
  getlist,
  getupd,
  getassign,
  getRWdetail,
};
